package com.cskaoyan.day1.generic5;

/**
 * @author Common-zhou
 * @since 2023-02-27 11:44
 */
public class String2IntegerConverter implements Converter<String, Integer> {
    @Override
    public Integer convert(String data) {
        return Integer.parseInt(data);
    }

    public static void main(String[] args) {
        String2IntegerConverter string2IntegerConverter = new String2IntegerConverter();

        Integer convert = string2IntegerConverter.convert("123");

        System.out.println(convert);

        // 2023-02-27   Date

    }

}
